<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			Promise.all([
				// new Promise((resolve, reject) => {
				// 	$.ajax({
				// 		url: 'url1',
				// 		success: function(data){
				// 			resolve(data)
				// 		}
				// 	})
				// }),
				// new Promise((resolve, reject) => {
				// 	$ajax({
				// 		url: 'url2',
				// 		success: function(data){
				// 			resolve(data)
				// 		}
				// 	})
				// })
				new Promise((resolve, reject) => {
					setTimeout(() => {
						resolve('result1')
					}, 2000)
				}),
				new Promise((resolve, reject) => {
					setTimeout(() => {
						resolve({name: 'andy', age: 20})
					}, 1000)
				})
			]).then(result => {
				console.log(result);
			})
		</script>
	</body>
</html>
